<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<script src = "../js/jquery-1.12.1.js" type = "text/javascript"></script>
	<script src = "../js/common.js" type = "text/javascript"></script>
	<script src = "../js/highcharts.js"></script>
	<script src = "../js/highcharts-3d.js"></script>
	
	<link href="<%=request.getContextPath() %>/css/extremecomponents.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath() %>/css/global.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />

<title>Insert title here</title>
</head>
<script>

$(function() {
    //查询
    $("#btnsearch").click(
        function() {
            formPost(window.SearchState, '','similar?ActionType=similar_SimilarReportSelect', this);
       
            });
    });
</script>
<body>
<div id="current">当前位置：考试分析 &gt; 考试—作业相似度分析报告</div>
<div class="page-container">
<form name="SearchState" method="post">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="search_table">
    <tr class="search_title_tr">
      <td colspan="5" class="search_title_L"><img src="../images/search_titleleft.jpg" width="84" height="30" align="top" /></td>
      <td width="25%" class="search_title_R"><img src="../images/search-titleright.jpg" width="8" height="30" align="top" /></td>
    </tr>
<tr>
       <td width="12%" class="search_td1">学号：</td>
      <td width="25%" class="search_td2">
        <input name="STU_ID" type="text" size="16" value="<c:out value='${CONDITIONMAP.STU_ID}' />" />
      </td>
      <td width="12%" class="search_td1">姓名：</td>
      <td colspan="2" class="search_td2">
        <input name="STU_NAME" type="text" size="16" value="<c:out value='${CONDITIONMAP.STU_NAME}' />" />
      </td>
      <td class="search_td2">
      <input id="btnsearch" name="btnsearch" type="button" class="btn_2" value="查询" /></td>
      </tr>
  </table>
  </form>
  


<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<!-- <th width="25"><input type="checkbox" name="" value=""></th> -->
					<th width="105">学生学号</th>
					<th width="105">学生姓名</th>
					<th width="105">科目</th>
					<th width="105">作业指数</th>
					<th width="105">考试指数</th>
					<th width="105">相似指数</th>
					<th width="105">抄袭程度</th>
					
				</tr>
			</thead>
			<tbody>
					 <c:forEach items="${SIMILARINFO}"  var="similarList">
					 <tr class="text-c">
	                               <td>${similarList.student_id}</td>
	                               <td>${similarList.student_name}</td>
	                               <td>${similarList.course_name}</td>
	                               <td>${(similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100}</td>
	                               <td>${similarList.total_scores}</td>
	                               <td>${similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100)}</td>
	                               <td>
	                               			
	                               			<c:if test="${(similarList.total_scores-(similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100)<0||(similarList.total_scores-(similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100)==0}"><span style="color:yellow">一般</span></c:if>
	                               			<c:if test="${(similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100))<25 && (similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100))>0}"><span style="color:blue">较重</span></c:if>
	                               			<c:if test="${(similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100))<75 && (similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100))>25}"><span style="color:orange">严重</span></c:if>
	                               			<c:if test="${(similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100))<100 && (similarList.total_scores-((similarList.total_value/(TOPICAMOUNT[0].topic_amount*6))*100))>75}"><span style="color:red">特别严重</span></c:if>
	                               			
	                               			   			
	                               			
	            					</td>
	                   </tr>
	                  </c:forEach>
			</tbody>
		</table>
	</div>
	<div id="container" class="container" style="display:none;height:250px;margin-left:auto;margin-right:auto;margin-top:10px;"></div>
	
</div>
</body>
</html>